package tech.edwardvan.springsecuritydemo.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author EdwardVan
 */
@ConfigurationProperties(prefix = "jwt")
@Data
public class JwtProperties {
    /**
     * Access Token 过期时间(分钟) 默认5分钟
     */
    private long accessTokenExpireTime = 5L;
    /**
     * Refresh Token 过期时间(分钟) 默认15天
     */
    private long refreshTokenExpireTime = 15 * 24 * 60L;
    /**
     * 密钥
     */
    private String secretKey;
}
